//
//  TCPRequest.h
//  zhongxiangdianhua
//
//  Created by longziyuan on 15-1-27.
//
//

#import <Foundation/Foundation.h>
#import "AsyncSocket.h"

#define NETWORKSTATE   [GlobalVar getNetWorkStates] //判断状态栏网络状态



@protocol TCPNetWorkDelegate <NSObject>

-(void)returnBackSuccess:(NSString*)responseString;
-(void)returnBackFail:(NSString*)errorResult;

@end









@interface TCPRequest : NSObject<AsyncSocketDelegate>
{
    AsyncSocket *socket;
}

@property (nonatomic,assign) id<TCPNetWorkDelegate>mydelegate;
//TCP请求
-(void)getTCPInfro:(NSMutableDictionary*)dic;
@end
